import request from '@/utils/request'

// 查询upay提现列表
export function listUserWithdraw(query) {
  return request({
    url: '/model/userWithdraw/list',
    method: 'get',
    params: query
  })
}
// 查询提现统计数据
export function selectCount() {
  return request({
    url: '/model/userWithdraw/selectCount',
    method: 'get'
  })
}

// 提现审核通过
export function updateUserWithdrawStatus(id) {
  return request({
    url: '/model/userWithdraw/updateUserWithdrawStatus/' + id,
    method: 'get',
  })
}

// 查询upay提现详细
export function getUserWithdraw(id) {
  return request({
    url: '/model/userWithdraw/' + id,
    method: 'get'
  })
}

// 新增upay提现
export function addUserWithdraw(data) {
  return request({
    url: '/model/userWithdraw',
    method: 'post',
    data: data
  })
}

// 修改upay提现
export function updateUserWithdraw(data) {
  return request({
    url: '/model/userWithdraw',
    method: 'put',
    data: data
  })
}

// 删除upay提现
export function delUserWithdraw(id) {
  return request({
    url: '/model/userWithdraw/' + id,
    method: 'delete'
  })
}

// 导出upay提现
export function exportUserWithdraw(query) {
  return request({
    url: '/model/userWithdraw/export',
    method: 'get',
    params: query
  })
}
